﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;

namespace SyCODE.Blog
{
    /// <summary>
    /// ConstData 的摘要说明
    /// </summary>
    public static class ConstData
    {
        private static ConstDataProvider provider = new ConstDataProvider();

        public static ConstDataNode Get(string key)
        {
            return provider[key];
        }

        public static ConstDataNode Get(string key, params string[] names)
        {
            ConstDataNode node = Get(key);
            for (int i = 0; i < names.Length; i++)
            {
                node = node[names[i]];
            }

            return node;
        }
    }
}